public class BolmeIslemi {
	public static void main(String[] args) {
		BolmeIslemi bi = new BolmeIslemi();
		System.out.println(bi.bolme(10, 5));
		System.out.println(bi.bolme(10, 2));
		System.out.println(bi.bolme(0, 0));
		System.out.println(bi.bolme(10, 0));
	}

	double bolme(double bolunen, double bolen) {
		return bolunen / bolen;
	}

	int bolme(int bolunen, int bolen) {
		int sonuc = 0;
		try {
			sonuc = bolunen / bolen;
		} catch (RuntimeException e) {
			System.out.println("getMessage : " + e.getMessage());
			System.out.println("getLocalizedMessage : "
					+ e.getLocalizedMessage());
			System.out.println("toString " + e.toString());
		}
		return sonuc;
	}
}
